<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<span class="election_vote">
<% (0..3).each do | score |
  checked = false
  checked = true if selected == score
  %>  
<div class="election_score"><%= " #{score}" -%> <%= radio_button_tag "item[#{item_id}]", score, checked %></div>
<% end %>
</span>